<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="Author" content="">
    <meta content="" name="design">
    <title>广州一代医药科技有限公司</title>
    <link rel="stylesheet" type="text/css" media="all" href="css/css_whir.css"/>
    <script type="text/javascript" src="Scripts/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery.SuperSlide.2.1.1.js"></script>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="scripts/html5shiv.v3.72.min.js"></script><![endif]-->
    <script type="text/javascript"> var navid = "5"</script>

    <script>
        <!--发送ajax请求将要修改的个人资料发送给后端处理-->
        $(function () {

            $("#updateForm").submit(function () {

                $.post("updateForm.do", $(this).serialize(), function (data) {
                    alert(data);

                });
                return false;


            });


            /*$("#submit").on("click",function () {
                $("#img").attr("src","D:\\1.jpg");
            })*/
            $("#form").submit(function(){
                $("#img").attr("src","D:\\1.jpg");


                });








        });




    </script>

</head>

<body>
<header class="Header">
    <div class="head">
        <a href="首页.html" class="logo"><img src="images/logo.jpg"/></a>
        <div class="head-Right">
            <a href="/logout" class="add-site">退出登录</a>
            <div class="language-select">
                <span class="checked-lan"><a>ENGLISH</a><em></em></span>
                <ul class="language-menu">
                    <li><a href="#">ENGLISH</a></li>
                    <li><a href="#">中文版</a></li>
                </ul>
            </div>
            <div class="Searchbox">
                <input name="" type="text" class="search_ipu" id="key" value="输入要搜素的信息"
                       onblur="if(this.value=='')this.value='输入要搜素的信息';"
                       onfocus="if(this.value=='输入要搜素的信息')this.value='';" onkeydown="entersearch()"/>
                <input name="" type="button" class="search_btn" value="" onclick="return GoSearchUrl();"/>

                <div class="clear"></div>

            </div>
        </div>
        <div class="clear"></div>
    </div>
    <nav class="Mainnav">
        <ul class="menuone">
            <li><a href="index.html" class="ona" id="nav1">首 页<span></span></a></li>
            <li><a href="会诊医生.html" class="ona" id="nav2">会诊医生<span></span></a></li>
            <li><a href="产品目录_列表页.html" class="ona" id="nav3">产品目录<span></span></a></li>
            <li><a href="健康知识.html" class="ona" id="nav4">健康知识<span></span></a></li>
            <li><a href="用户反馈.html" class="ona" id="nav5">用户反馈<span></span></a></li>
            <li><a href="关于我们.html" class="ona" id="nav6">关于我们<span></span></a></li>
            <li><a href="#" class="ona" id="nav7">联系我们<span></span></a></li>
            <div class="clear"></div>
        </ul>
    </nav>
</header>
<script type="text/javascript">
    $("#nav" + navid).addClass("active");

    //语言切换
    $(".checked-lan").click(function () {
        $(".language-menu").show();
    })
    $(".language-menu li").each(function () {
        $(this).click(function () {
            $(".checked-lan").find("a").html() = $(this).find("a").html();
            //$(".checked-lan").find("a").attr("href")=$(this).find("a").attr("href");
        })
    })
    $(".language-select").hover(function () {
    }, function () {
        $(this).find(".language-menu").hide();
    })


</script>
<script type="text/javascript">
    //this function do not use jquery for honner page?
    function GoSearchUrl() {
        var searchinput = document.getElementById("key");
        if (searchinput.value == "" || searchinput.value == "输入要搜素的信息") {
            alert("请输入关键字！");
            searchinput.focus();
            return false;
        }
        if (searchinput.value.length > 50) {
            alert("输入的关键字字数不要过多！");
            searchinput.focus();
            return false;
        }
        CheckString(searchinput.value);
    }

    function GoSreach(rs) {
        window.location = "{$syspath}search/search.aspx?key=" + escape(rs);
        return true;
    }

    function entersearch() {
        //alert(dd);
        var event = window.event || arguments.callee.caller.arguments[0];
        if (event.keyCode == 13) {
            GoSearchUrl();
        }
    }

    function CheckString(s) {
        // alert(s)
        var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）—|{}【】'；：“”'。，、？]")
        if (pattern.test(s)) {
            alert("不能输入特殊字符！");
            $(".sreach_ipu").focus();
            $(".sreach_ipu").val("");
            return false;
        }
        else {
            GoSreach(s);
        }
    }
</script>

<!--图片切换-->
<aside class="banner ban" style=" background:url(uploadfiles/banner_member.jpg) no-repeat top center; height:210px;">
    <div class="banlink">
        <!--<a href="#" class="a1">会员登录</a>
        <a href="#" class="a2">名医推荐</a>
        <a href="#" class="a3">咨询客服</a>-->
    </div>
</aside>
<!--图片切换 End-->
<aside class="Current"><em></em><a href="index.html">首页</a> > <span>会员中心</span></aside>

<section class="MemberMain Main">

    <div class="conbox">
        <div class="siderMem">
            <ul>
                <li class="on"><a href="会员中心_个人资料.html" class="a1">个人资料</a></li>

                <li><a href="会员中心_密码修改.html" class="a2">密码修改</a></li>

                <li><a href="会员中心_商品订单.html" class="a3">商品订单</a></li>

                <li><a href="会员中心_咨询订单.html" class="a5">咨询订单</a></li>
            </ul>
        </div>

        <div class="mainCont">
            <!--start-->
            <div class="infor-box">
                <div class="table-box box1">
                    <h3><span>个人资料修改</span></h3>
                    <form id="updateForm">
                        <table>


                            <tr>
                                <td><span>用户名:</span><input type="text" name="username" class="text"/></td>
                            </tr>

                            <tr>
                                <td><span>邮箱:</span><input type="text" name="email" class="text"/></td>
                            </tr>
                            <tr>
                                <td><span>手机号码:</span><input type="text" name="mobileNumber" class="text"/></td>
                            </tr>

                            <tr>
                                <td><span>昵称:</span><input type="text" name="nickName" class="text"/></td>
                            </tr>

                            <tr>
                                <td><span>真实姓名:</span><input type="text" name="name" class="text"/></td>
                            </tr>
                            <tr>
                                <td><span>身份证号码:</span><input type="text" name="idCard" class="text"/></td>
                            </tr>
                            <tr>
                                <td><span>所在地:</span><input type="text" name="location" class="text"/></td>
                            </tr>
                            <tr>
                                <td><span>性别：</span>
                                    <input type="radio" name="sex" value="男"/>男
                                    <input type="radio" name="sex" value="女"/>女
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <span>生日:</span>

                                    <input type="date" id="birthday" name="birthday" placeholder="年/月/日">
                                </td>
                            </tr>

                            <tr style="text-align: center">
                                <td>
                                    <input id="update" type="submit" class="button1" value="修改">
                                    <!--<p class="member-change"><a class="button1">修改</a></p>-->
                                </td>
                            </tr>


                        </table>
                    </form>


                </div>
                <!--头像-->
                <div class="table-box box2">
                    <h3><span>个人资料修改</span></h3>
                    <!--<p class="p1"><a class="img"><img src="images/1.jpg"/></a></p>-->
                    <img id="img" src="images/member_pic1.jpg">
                    <form id="form" action="/uploadPicture.do" method="post" enctype="multipart/form-data">
                        照片<input type="file" name="uploadFile">
                        <input id="submit" type="submit" value="提交" >
                    </form>

                    <!--<form id="demoForm" enctype="multipart/form-data" action="/uploadPicture.do" method="post">
                        <div>
                            <label>
                                上传文件
                                <input type="file" name="imageFile">
                            </label>
                        </div>
                        <button type="submit">上传文件</button>
                    </form>-->


                </div>
            </div>
        </div>
    </div>
</section>


<footer class="BottomBox">
    <div class="bottom">
        <div class="fbox1">
            <div class="f-address">地址：</div>
            <nav class="f-nav"><a href="#">流量统计</a> | <a href="#">网站地图</a> | <a href="#">法律声明</a> | <a href="#">友情链接</a>
            </nav>
        </div>
        <div class="fbox2">
            <div class="f-copyright">Copyright © 2015 广州一代医药科技有限公司. All Rights Reserved
            </div>
            <div class="f-record">粤ICP备123456789号 Designed by <a href="#">我的虚拟世界店铺</a>.
            </div>
        </div>
    </div>
</footer>

<script type="text/javascript">
    //整站无图处理
    jQuery.each(jQuery("img"), function (i, n) {
        jQuery(n).error(function () {
            n.src = 'uploadfiles/nopic.jpg';
        });
        n.src = n.src;
    });

</script>

<script type="text/javascript">
    $(".p-list li").each(function (i, item) {
        if (Number(i + 1) % 3 == 0) {
            $(this).css("margin-right", "0px");
        }
    });
</script>

<script type="text/javascript">
    //获取file的值
    function UploadFile(n) {
        var UpFile = $(n).val();
        //alert(UpFile)
        $(n).parents(".uploadBox").next().val(UpFile);
    }
</script>

</body>
</html>